import { reqGetSearchInfo } from "@/api";
const state={
    searchInfo: {}
};
const mutations={
    GET_SEARCHINFO(state,searchInfo){
        state.searchInfo = searchInfo
    }
};
const actions={
    getSearchInfo({commit},params){
        reqGetSearchInfo(params).then(res=>{
            if(res.code === 200){
                commit('GET_SEARCHINFO',res.data)
            }
        })
    }
};
const getters={};
export default {
    state,
    mutations,
    actions,
    getters
}